﻿$(document).ready(function() {
    $(".thead").wrap("<thead></thead>");
    $(".tfoot").wrap("<tfoot></tfoot>");
    $("#ctl00_MainContent_TJTable").children("tbody").before($("thead"));
    $("#ctl00_MainContent_TJTable").children("tbody").after($("tfoot"));
    $("#ctl00_MainContent_TJTable").tablesorter({ headers: {
        0: { sorter: false },
        1: { sorter: false },
        2: { sorter: "currency" },
    }
    });
});

function yanzheng(type) {

    if ($("#ctl00_MainContent_txtBTime").val() == "") {
        $("#ctl00_MainContent_txtBTime").css("background-color", "plum");
        alert("起始时间不能为空");
        return false;
    }
    else {
        $("#ctl00_MainContent_txtBTime").css("background-color", "");
    }
    if ($("#ctl00_MainContent_txtETime").val() == "") {
        $("#ctl00_MainContent_txtETime").css("background-color", "plum");
        alert("截止时间不能为空");
        return false;
    }
    else {
        $("#ctl00_MainContent_txtETime").css("background-color", "");
    }
    return true;
}